package top.bluesword.laboratory.runner;

import lombok.RequiredArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import top.bluesword.laboratory.service.HelloService;

/**
 * @author 李林峰
 */
@Component
@RequiredArgsConstructor
public class MyApplicationRunner implements ApplicationRunner {

    private final HelloService helloService;

    @Override
    public void run(ApplicationArguments args) {
        helloService.startUp();
    }
}
